package com.szx.usercenter.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.szx.usercenter.domain.SysUser;
import com.szx.usercenter.util.Response;

import javax.servlet.http.HttpServletRequest;

/**
 * @author yikonsh
 * @description 针对表【sys_user(用户信息表)】的数据库操作Service
 * @createDate 2024-05-11 09:54:35
 */
public interface SysUserService extends IService<SysUser> {

  SysUser getSefUser(SysUser user);

  Response login(SysUser sysUser, HttpServletRequest request);

  Response register(String username, String password);

  SysUser currentUser(HttpServletRequest request);

  Response updatePassword(String userName, String newPassword);

  Response getPageUserList(SysUser sysUser);

  Response addUser(SysUser sysUser);
}
